package abc.red.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @ClassName Supplier
 * @Author YiXia
 * @Date 2024/1/16 11:11
 * @Version 1.0
 * @Description TODO
 **/



@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer {

    @TableId(type= IdType.AUTO)
    private Long id;
    private String name;
    private String phone;
    private String address;
    private String message;
    private String email;



    /*插入时填充*/

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /*插入与更新时*/

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;


}
